package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ShopVoucherDao;
import com.ouheng.shop.domain.ShopVoucherDO;
import com.ouheng.shop.service.ShopVoucherService;



@Service
public class ShopVoucherServiceImpl implements ShopVoucherService {
	@Autowired
	private ShopVoucherDao shopVoucherDao;
	
	@Override
	public ShopVoucherDO get(Long id){
		return shopVoucherDao.get(id);
	}
	
	@Override
	public List<ShopVoucherDO> list(Map<String, Object> map){
		return shopVoucherDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return shopVoucherDao.count(map);
	}
	
	@Override
	public int save(ShopVoucherDO shopVoucher){
		return shopVoucherDao.save(shopVoucher);
	}
	
	@Override
	public int update(ShopVoucherDO shopVoucher){
		return shopVoucherDao.update(shopVoucher);
	}
	
	@Override
	public int remove(Long id){
		return shopVoucherDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return shopVoucherDao.batchRemove(ids);
	}
	
}
